home *** CD-ROM | disk | FTP | other *** search
/ Toy Story Free! Interactive / Toy Story.iso / pc / DATA / math.swf / scripts / frame_43 / DoAction.as
Encoding:
Text File  |  2010-01-27  |  5.3 KB  |  323 lines

  1. clock.gotoAndPlay(1);
  2. s1._visible = true;
  3. s2._visible = true;
  4. s3._visible = true;
  5. s4._visible = true;
  6. s5._visible = true;
  7. s6._visible = true;
  8. s7._visible = true;
  9. s8._visible = true;
  10. s9._visible = true;
  11. s10._visible = true;
  12. s11._visible = true;
  13. s12._visible = true;
  14. s13._visible = true;
  15. s14._visible = true;
  16. a1._visible = true;
  17. a2._visible = true;
  18. a3._visible = true;
  19. a4._visible = true;
  20. a5._visible = true;
  21. a6._visible = true;
  22. a7._visible = true;
  23. a8._visible = true;
  24. a9._visible = true;
  25. s1._x = 196;
  26. s1._y = 88;
  27. s1.onPress = function()
  28. {
  29.    this.startDrag();
  30.    s1._rotation = 0;
  31. };
  32. s1.onRelease = function()
  33. {
  34.    this.stopDrag();
  35.    if(this.hitTest(a2))
  36.    {
  37.       a2._visible = false;
  38.       s1._visible = false;
  39.       score += 10;
  40.       sfx.gotoAndPlay("yes");
  41.       nextFrame();
  42.    }
  43.    else
  44.    {
  45.       s1._rotation = -15;
  46.       s1._x = 196;
  47.       s1._y = 88;
  48.       sfx.gotoAndPlay("no");
  49.    }
  50. };
  51. s2._x = 608;
  52. s2._y = 60;
  53. s2.onPress = function()
  54. {
  55.    this.startDrag();
  56.    s2._rotation = 0;
  57. };
  58. s2.onRelease = function()
  59. {
  60.    this.stopDrag();
  61.    if(this.hitTest(a4))
  62.    {
  63.       a4._visible = false;
  64.       s2._visible = false;
  65.       score += 10;
  66.       sfx.gotoAndPlay("yes");
  67.       nextFrame();
  68.    }
  69.    else
  70.    {
  71.       s2._rotation = 15;
  72.       s2._x = 608;
  73.       s2._y = 60;
  74.       sfx.gotoAndPlay("no");
  75.    }
  76. };
  77. s3._x = 658;
  78. s3._y = 70;
  79. s3.onPress = function()
  80. {
  81.    this.startDrag();
  82. };
  83. s3.onRelease = function()
  84. {
  85.    this.stopDrag();
  86.    if(this.hitTest(a5))
  87.    {
  88.       a5._visible = false;
  89.       s3._visible = false;
  90.       score += 10;
  91.       sfx.gotoAndPlay("yes");
  92.       nextFrame();
  93.    }
  94.    else
  95.    {
  96.       s3._rotation = 15;
  97.       s3._x = 658;
  98.       s3._y = 70;
  99.       sfx.gotoAndPlay("no");
  100.    }
  101. };
  102. s4._x = 242;
  103. s4._y = 62;
  104. s4.onPress = function()
  105. {
  106.    this.startDrag();
  107.    s4._rotation = 0;
  108. };
  109. s4.onRelease = function()
  110. {
  111.    this.stopDrag();
  112.    if(this.hitTest(a1))
  113.    {
  114.       a1._visible = false;
  115.       s4._visible = false;
  116.       score += 10;
  117.       sfx.gotoAndPlay("yes");
  118.       nextFrame();
  119.    }
  120.    else
  121.    {
  122.       s4._rotation = 15;
  123.       s4._x = 242;
  124.       s4._y = 62;
  125.       sfx.gotoAndPlay("no");
  126.    }
  127. };
  128. s5._x = 297;
  129. s5._y = 62;
  130. s5.onPress = function()
  131. {
  132.    this.startDrag();
  133. };
  134. s5.onRelease = function()
  135. {
  136.    this.stopDrag();
  137.    if(this.hitTest(a8))
  138.    {
  139.       a8._visible = false;
  140.       s5._visible = false;
  141.       score += 10;
  142.       sfx.gotoAndPlay("yes");
  143.       nextFrame();
  144.    }
  145.    else
  146.    {
  147.       s5._x = 297;
  148.       s5._y = 62;
  149.       sfx.gotoAndPlay("no");
  150.    }
  151. };
  152. s6._x = 355;
  153. s6._y = 60;
  154. s6.onPress = function()
  155. {
  156.    this.startDrag();
  157.    s6._rotation = 0;
  158. };
  159. s6.onRelease = function()
  160. {
  161.    this.stopDrag();
  162.    s6._rotation = -15;
  163.    s6._x = 355;
  164.    s6._y = 60;
  165.    sfx.gotoAndPlay("no");
  166. };
  167. s7._x = 411;
  168. s7._y = 65;
  169. s7.onPress = function()
  170. {
  171.    this.startDrag();
  172.    s7._rotation = 0;
  173. };
  174. s7.onRelease = function()
  175. {
  176.    this.stopDrag();
  177.    if(this.hitTest(a3))
  178.    {
  179.       a3._visible = false;
  180.       s7._visible = false;
  181.       score += 10;
  182.       sfx.gotoAndPlay("yes");
  183.       nextFrame();
  184.    }
  185.    else
  186.    {
  187.       s7._rotation = 15;
  188.       s7._x = 411;
  189.       s7._y = 65;
  190.       sfx.gotoAndPlay("no");
  191.    }
  192. };
  193. s8._x = 556;
  194. s8._y = 63;
  195. s8.onPress = function()
  196. {
  197.    this.startDrag();
  198. };
  199. s8.onRelease = function()
  200. {
  201.    this.stopDrag();
  202.    if(this.hitTest(a9))
  203.    {
  204.       a9._visible = false;
  205.       s8._visible = false;
  206.       score += 10;
  207.       sfx.gotoAndPlay("yes");
  208.       nextFrame();
  209.    }
  210.    else
  211.    {
  212.       s8._x = 556;
  213.       s8._y = 63;
  214.       sfx.gotoAndPlay("no");
  215.    }
  216. };
  217. s9._x = 713;
  218. s9._y = 98;
  219. s9.onPress = function()
  220. {
  221.    this.startDrag();
  222. };
  223. s9.onRelease = function()
  224. {
  225.    this.stopDrag();
  226.    if(this.hitTest(a7))
  227.    {
  228.       a7._visible = false;
  229.       s9._visible = false;
  230.       score += 10;
  231.       sfx.gotoAndPlay("yes");
  232.       nextFrame();
  233.    }
  234.    else
  235.    {
  236.       s9._x = 713;
  237.       s9._y = 98;
  238.       sfx.gotoAndPlay("no");
  239.    }
  240. };
  241. s10._x = 192;
  242. s10._y = 209;
  243. s10.onPress = function()
  244. {
  245.    this.startDrag();
  246.    s10._rotation = 0;
  247. };
  248. s10.onRelease = function()
  249. {
  250.    this.stopDrag();
  251.    s10._rotation = -15;
  252.    s10._x = 192;
  253.    s10._y = 209;
  254.    sfx.gotoAndPlay("no");
  255. };
  256. s11._x = 733;
  257. s11._y = 162;
  258. s11.onPress = function()
  259. {
  260.    this.startDrag();
  261.    s11._rotation = 0;
  262. };
  263. s11.onRelease = function()
  264. {
  265.    this.stopDrag();
  266.    if(this.hitTest(a6))
  267.    {
  268.       a6._visible = false;
  269.       s11._visible = false;
  270.       score += 10;
  271.       sfx.gotoAndPlay("yes");
  272.       nextFrame();
  273.    }
  274.    else
  275.    {
  276.       s11._rotation = -15;
  277.       s11._x = 733;
  278.       s11._y = 162;
  279.       sfx.gotoAndPlay("no");
  280.    }
  281. };
  282. s12._x = 181;
  283. s12._y = 150;
  284. s12.onPress = function()
  285. {
  286.    this.startDrag();
  287. };
  288. s12.onRelease = function()
  289. {
  290.    this.stopDrag();
  291.    s12._x = 181;
  292.    s12._y = 150;
  293.    sfx.gotoAndPlay("no");
  294. };
  295. s13._x = 194;
  296. s13._y = 281;
  297. s13.onPress = function()
  298. {
  299.    this.startDrag();
  300.    s13._rotation = 0;
  301. };
  302. s13.onRelease = function()
  303. {
  304.    this.stopDrag();
  305.    s13._rotation = 15;
  306.    s13._x = 194;
  307.    s13._y = 281;
  308.    sfx.gotoAndPlay("no");
  309. };
  310. s14._x = 740;
  311. s14._y = 227;
  312. s14.onPress = function()
  313. {
  314.    this.startDrag();
  315. };
  316. s14.onRelease = function()
  317. {
  318.    this.stopDrag();
  319.    s14._x = 740;
  320.    s14._y = 227;
  321.    sfx.gotoAndPlay("no");
  322. };
  323.